﻿using System;
using System.Collections.Generic; 
using System.Drawing;
using System.Text;
using Workflows.Components.Rules.Properties;

namespace Workflows.Components.Rules
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    public class RuleSecurityCheck
    {
        private Guid _RuleSecurityCheckID;
        /// <summary></summary>
        public Guid RuleSecurityCheckID
        {
            get
            {
                return this._RuleSecurityCheckID;
            }
            set
            {
                this._RuleSecurityCheckID = value;
            }
        }

        private string _Name;
        /// <summary></summary>
        public string Name
        {
            get
            {
                return this._Name;
            }
            set
            {
                this._Name = value;
            }
        }

        private string _Description;
        /// <summary></summary>
        public string Description
        {
            get
            {
                return this._Description;
            }
            set
            {
                this._Description = value;
            }
        }

        private string[] _Roles;
        /// <summary></summary>
        public string[] Roles
        {
            get
            {
                return this._Roles;
            }
            set
            {
                this._Roles = value;
            }
        }

        private Image _Img;
        /// <summary></summary>
        public Image Img
        {
            get
            {
                return this._Img;
            }
            set
            {
                this._Img = value;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        public RuleSecurityCheck()
        {
            this._RuleSecurityCheckID = Guid.NewGuid();
            this._Name = "Security check";
            this._Description = string.Empty;
            this._Roles = null;
            this._Img = Resources.Users;
        }
    }
}
